package com.xxl.job.executor;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

/**
 * @author xuxueli 2018-10-28 00:38:13
 */
@EnableWebSecurity
@MapperScan({"com.ruoyi.*.mapper","com.xxl.job.executor.mapper"})
@ComponentScan(
		basePackages = {
				"com.xxl.job.executor",
				"com.ruoyi"
//				"com.ruoyi.*.service",
//				"com.ruoyi.common.*",
//				"com.ruoyi.extdata.*",
		},
		includeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Component.class, Controller.class, Service.class})
)
@EnableAsync
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class XxlJobExecutorApplication {

	public static void main(String[] args) {
        SpringApplication.run(XxlJobExecutorApplication.class, args);
	}

}